package com.feng.chat.pojo;

import io.gitee.zerowsh.actable.annotation.AcColumn;
import io.gitee.zerowsh.actable.annotation.AcTable;
import io.gitee.zerowsh.actable.emnus.ColumnTypeEnums;

import java.time.LocalTime;

@AcTable(name = "emoticon_item",comment = "表情包详情表")
public class EmoticonItem {
    @AcColumn(name = "id",comment = "表情包详情ID",type = ColumnTypeEnums.INT,length = 20,isAutoIncrement = true,isKey = true)
    private Integer id;

    @AcColumn(name = "emoticon_id",defaultValue = "0",comment = "表情分组ID",type = ColumnTypeEnums.INT)
    private Integer emoticon_id;

    @AcColumn(name = "user_id",defaultValue = "0",comment = "用户ID（0：代码系统表情包）",type = ColumnTypeEnums.INT)
    private Integer user_id;

    @AcColumn(name = "describe", defaultValue = "", comment = "表情描述", type = ColumnTypeEnums.VARCHAR, length = 20, isNull = false)
    private String describe;

    @AcColumn(name = "url", defaultValue = "", comment = "图片链接", type = ColumnTypeEnums.VARCHAR, length = 255, isNull = false)
    private String url;

    @AcColumn(name = "file_suffix", defaultValue = "", comment = "文件后缀名", type = ColumnTypeEnums.VARCHAR, length = 10, isNull = false)
    private String file_suffix;

    @AcColumn(name = "file_size", defaultValue = "0", comment = "文件大小（单位字节）", type = ColumnTypeEnums.BIGINT, isNull = false)
    private Integer file_size;

    @AcColumn(name = "created_at", comment = "创建时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime createdAt;

    @AcColumn(name = "updated_at", comment = "更新时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime updatedAt;
}
